package common.serializer;

//序列化和反序列化的接口
public interface Serializer {
    //序列化
    //把传进来的data 转成字节数组或者是String
    byte[] serializerToBytes(Object data);
    String serializerToString(Object data);

    //反序列化
    <T>T deSerializer(String content);
    <T>T deSerializer(byte[] content);
}
